<?php
    require_once( 'includes/common.inc.php' );

    $smarty = new AdvancedSmarty();
    $userManager = new UserManager();
    $varArray = array
    (
        'title' => 'Sign Up',
        'description' => 'It\'s free and always will be.',
        'css' => '/css/style.css'
    );
    try
    {
        $varArray['msg'] = $userManager->saveUser();
    }
    catch ( Exception $e )
    {
        $varArray['errorMsg'] = $e->getMessage();
    }
    $smarty->caching = false;
    $smarty->buildLayout( 'registration_handler.tpl', $varArray );
?>